Automated Insulin Delivery Settings Initialization and Adaptation Algorithm